#include "stdafx.h"
#include "mytime3.h"


mytime3::mytime3(void)
{
}


mytime3::~mytime3(void)
{
}

mytime3::mytime3(int h,int m){
	hours = h;
	minutes = m;
}
void mytime3::addmin(int m){
	minutes += m;
	hours+=minutes /60;
	minutes %= 60;
}
void mytime3::addhour(int h){
	hours += h;
}
void mytime3::reset(int h,int m){
	hours = h;
	minutes = m;
}
mytime3 mytime3::operator+(const mytime3 &time){
	mytime3 tmp;
	tmp.hours = time.hours + hours;
	tmp.minutes = time.minutes + minutes;
	tmp.hours += tmp.minutes / 60;
	tmp.minutes %= 60;
	return tmp;
}
mytime3 mytime3::operator-(const mytime3 &time){
	mytime3 tmp;
	return tmp;
}
mytime3 mytime3::operator*(double n) const{
	mytime3 tmp;
	return tmp;
}
std::ostream & operator<<(std::ostream &os,const mytime3 &time){
	os << time.hours <<" hours ," << time.minutes <<" minutes";
	return os;
}
